package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author ShouPeng
 * @since 2024-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mall_order")
//@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

//    @ApiModelProperty(value = "订单号")
    private String orderNo;

//    @ApiModelProperty(value = "用户ID")
    private String userId;

//    @ApiModelProperty(value = "总价")
    private Double totalPrice;

//    @ApiModelProperty(value = "订单状态,1-下单 2-支付完成 3-配货 4-出库 5-完成订单")
    private Integer status;

//    @ApiModelProperty(value = "是否支付")
    private Boolean isPay;

//    @ApiModelProperty(value = "支付时间")
    private String payTime;

//    @ApiModelProperty(value = "支付类型")
    private Integer payType;

//    @ApiModelProperty(value = "备注")
    private String extraInfo;

//    @ApiModelProperty(value = "地址ID")
    private Integer addressId;

//    @ApiModelProperty(value = "订单创建时间")
    private String orderCreateTime;

    private String logisticsCompany;

    private String logisticsAddress;

    private Double logisticsPrice;

    @TableField(exist = false)
    private String couponId;
}
